package com.gouying.web.controller;

import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@RestController
@AllArgsConstructor(onConstructor_ = @Autowired)
public class IndexController {



    @GetMapping("testsession")
    public void testRedisSession(HttpSession session) {
        session.setAttribute("loginUserSession","helloworld");

    }
}
